<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en" class="app">
<head>
    <meta charset="utf-8" />
    <title></title>
    <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <%--<link rel="stylesheet" href="../css/bootstrap.css" type="text/css" />--%>
    <%--<link rel="stylesheet" href="../css/simple-line-icons.css" type="text/css" />--%>
    <%--<link rel="stylesheet" href="../css/app.css" type="text/css" />--%>
    <script type="text/javascript" src="../css/jquery-3.3.1.min.js"></script>
</head>
<body>
<table border="1">
    <tr >
        <td>收入内容</td>
        <td>收入金额</td>
        <td>备注</td>
        <td>时间</td>
    </tr>
    <tbody>
    <c:forEach items="${incomeTablesList}" var="incomelist" varStatus="status">
        <tr>
            <td>${incomelist.content}</td>
            <td>${incomelist.income}</td>
            <td>${incomelist.remark}</td>
            <td><fmt:formatDate value='${incomelist.createtime}' pattern='yyyy-MM-dd' /> </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<span>总收入:<fmt:formatNumber type="number" value="${totalMoney}" maxFractionDigits="2"/></span>
<button type="button" id="add">新增</button>
</body>
<script>
$(function () {
    $("#add").click(function () {
        window.location.href = '../income/addForm.action';
    });
})
    //   $.ajax({
    //       type:'POST',
    //       url:'../Conference/delSignTime.action?conferenceid='+conferenceid,
    //       success:function(result){
    //           if(result.resultCode == '100'){
    //               $(e).parents(".removeHtml").remove();
    //               return;
    //           }else{
    //               alert( '会议正在签到统计，请勿删除' );
    //               return;
    //           }
    //       }
    //   });
</script>
</html>

